package com.supercube.sport.yoga.dao;

import com.supercube.sport.yoga.bo.MemberBO;
import com.supercube.sport.yoga.domain.CardGroupByMemberDTO;
import com.supercube.sport.yoga.domain.MemberDTO;
import com.supercube.sport.yoga.vo.MemberVO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface MemberMapper {
    int deleteByPrimaryKey(String id);

    int insert(MemberDTO record);

    int insertSelective(MemberDTO record);

    MemberVO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(MemberDTO record);

    int updateByPrimaryKey(MemberDTO record);

    List<MemberVO> selectMemberList(MemberBO bo);
    List<MemberVO> selectMemberListByLike(Map<String,Object> map);

    String queryPhone(String tel);

    Integer batchDeleteMember(List<String> ids);

    /**
     * 根据场馆ID获取会员列表
     *
     * @param venueId
     * @return
     */
    List<MemberVO> getMemberByVenueId(String venueId);

    List<CardGroupByMemberDTO> selectAllCardGroupByMember(List<String> list);

}